package org.dromara.bean.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.dromara.bean.domain.HisDelivery;
import org.dromara.bean.mapper.HisDeliveryMapper;
import org.dromara.bean.service.IHisDeliveryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 物流公司
 * @Author: jeecg-boot
 * @Date: 2022-04-23
 * @Version: V1.0
 */
@Service
public class HisDeliveryServiceImpl extends ServiceImpl<HisDeliveryMapper, HisDelivery> implements IHisDeliveryService {

    @Override
    public List<HisDelivery> listByDvyName(String dvyName) {
        LambdaQueryWrapper<HisDelivery> lambdaQueryWrapper = new LambdaQueryWrapper();
        lambdaQueryWrapper.like(HisDelivery::getDvyName, dvyName);
        return this.list(lambdaQueryWrapper);
    }
}
